
export default {
  data() {
    return {
      registerForm: {
        visible: false,
        // 子组件的初始化的内容
        form: null,
        width: "620px",
        formAttrs: {
          "label-width": "80px",
          inline: true
        },
        save: "save",
        title: ["编辑用户", "注册用户"],
        formType: "add",
        options: [
          {
            type: "input",
            value: "",
            label: "工号",
            prop: "username",
            rules: [
              {
                required: true,
                message: "工号不能为空",
                trigger: "blur"
              }
            ],
            attrs: {
              placeholder: "请输入工号",
              style: {
                width: "200px"
              }
            }
          },
          {
            type: "input",
            value: "",
            hide: false,
            prop: "name",
            label: "姓名",
            rules: [
              {
                required: true,
                message: "姓名不能为空",
                trigger: "blur"
              }
            ],
            attrs: {
              placeholder: "请输入姓名",
              style: {
                width: "200px"
              }
            }
          },
          {
            type: "input",
            value: "",
            hide: false,
            prop: "dept",
            label: "部门/组织",
            attrs: {
              placeholder: "请输入部门/组织",
              style: {
                width: "200px"
              }
            }
          },
          {
            type: "input",
            value: "",
            hide: false,
            prop: "job",
            label: "职务描述",
            attrs: {
              placeholder: "请输入职务描述",
              style: {
                width: "200px"
              }
            }
          },
          {
            type: "select",
            value: "",
            hide: false,
            prop: "sex",
            label: "性别",
            attrs: {
              placeholder: "请选择性别",
              style: {
                width: "200px"
              }
            },
            childern: [
              {
                label: "男",
                value: "男",
                type: "option"
              },
              {
                label: "女",
                value: "女",
                type: "option"

              }
            ]
          },
          {
            type: "input",
            value: "",
            hide: false,
            prop: "remark",
            label: "备注",
            attrs: {
              placeholder: "请输入备注",
              style: {
                width: "200px"
              }
            }
          },
          {
            type: "input",
            value: "",
            hide: true,
            prop: "id",
            label: "id"
          }

        ]
      }
    };
  },
  methods: {

  }
};
